﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Common.Helpers.Http/RequestOptions 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       RequestOptions
* 创建时间：  2025/5/21 18:30:31
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Common.Helpers.Http
{
    /// <summary>
    /// 请求配置
    /// </summary>
    public class RequestOptions
    {
        /// <summary>
        /// 请求头
        /// </summary>
        public Dictionary<string, string>? Headers { get; set; } = new();
        /// <summary>
        /// 请求cookie
        /// </summary>
        public Dictionary<string, string>? Cookies { get; set; } = new();
        /// <summary>
        /// ReferUrl 
        /// </summary>
        public string? ReferUrl { get; set; }
        /// <summary>
        /// 超时时间
        /// </summary>
        public TimeSpan? Timeout { get; set; }
        /// <summary>
        /// 重试次数
        /// </summary>
        public int? RetryCount { get; set; }
    }
}
